import Base from '../../static/js/base'
class EditPhone extends Base{
	constructor() {
		super();
	}
	// 判断验证码是否正确
	verdict_code(data,callBack) {
		var that = this;
		var params = {
		  url: 'login/verdict_code',
		  method:'POST',
		  data:data,
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	// 获取验证码
	send_code(phone,callBack) {
		var that = this;
		var params = {
		  url: 'login/send_code',
		  method:'POST',
		  data:{phone:phone},
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	// 我的信息
	my(callBack) {
		var that = this;
		var params = {
		  url: 'login/my',
		  method:'POST',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
}

export default EditPhone	